﻿<UserControl x:Class="Qplus.UI.FriendControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
     d:DesignHeight="200" d:DesignWidth="200"
             Background="Transparent" Margin="0"
             xmlns:my="clr-namespace:Qplus" Hold="UserControl_Hold" LostFocus="UserControl_LostFocus">

    <Grid x:Name="LayoutRoot" Width="200" Height="200" Margin="0" ShowGridLines="True">
        <Grid Name="ContentGrid" Margin="20" Background="#EB00E3FF">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Border Background="#D0808080" Grid.Row="2"/>
            <TextBlock Name="nickNameTxt" Text="{Binding userName, Mode=OneWay}" FontSize="30" HorizontalAlignment="Center"  Grid.Row="2"/>
            
        </Grid>
        <my:ButtonEx x:Name="frndBtnEx" Margin="0"
                     BorderBrush="Transparent" PressedBorderBrush="LightSkyBlue" BorderThickness="10"
                     Click="frndBtnEx_Click" Hold="frndBtnEx_Hold">
            <my:ButtonEx.Background>
                <ImageBrush ImageSource="/Qplus;component/Pic/icon_userhand_def.png" Stretch="None" />
            </my:ButtonEx.Background>
            <my:ButtonEx.PressedBackground>
                <ImageBrush ImageSource="/Qplus;component/Pic/icon_userhand_def.png" Stretch="None" />
            </my:ButtonEx.PressedBackground>
        </my:ButtonEx>
        <my:ButtonEx x:Name="delFrndBtnEx" Width="50" Height="50" BorderThickness="0" Visibility="Collapsed"
                     Margin="20" InvisibleMargin="0"
                         HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
                         HorizontalAlignment="Right" VerticalAlignment="Top" Click="delFrndBtnEx_Click">
            <my:ButtonEx.Background>
                <ImageBrush ImageSource="/Qplus;component/Pic/icon_delete_friend.png" Stretch="None" />
            </my:ButtonEx.Background>
            <my:ButtonEx.PressedBackground>
                <ImageBrush ImageSource="/Qplus;component/Pic/icon_delete_friend_pressed.png" Stretch="None" />
            </my:ButtonEx.PressedBackground>
        </my:ButtonEx>
    </Grid>
</UserControl>
